.rangePicker {
  &:global(.ant-picker) {
    padding: 4.5px 0;
  }
}

.commonTable {
  .title {
    color: var(--text-color-primary);
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    opacity: 0.85;
  }

  :global {
    .ant-input-search {
      width: 178px;
    }
    .ant-select-single:not(.ant-select-customize-input) .ant-select-selector {
      padding: 0 11px 0 0;
    }
    .ant-table-tbody > tr > td > .ant-table-wrapper:only-child .ant-table {
      margin-top: 0;
    }
  }
}

.approvalModal {
  .block:global(.ant-space) {
    width: 100%;
  }
  :global {
    .ant-modal-body {
      padding: 20px;
    }
  }
}

.tools {
  :global {
    .ant-dropdown-menu-item {
      color: #1890ff;
    }
    .ant-btn-link {
      height: 16px;
      padding: 0;
      line-height: 16px;
    }
    .ant-dropdown {
      width: 80px;
    }
  }
}

.connectionPopover {
  padding: 0;
  :global {
    .ant-popover-inner-content {
      padding: 0;
    }
  }
}

.task {
  display: flex;
  height: 100%;
  overflow: hidden;
  .sider {
    flex-grow: 0;
    flex-shrink: 0;
    height: 100%;
  }
}
.content {
  flex-grow: 1;
  flex-shrink: 1;
  height: 100%;
  padding-bottom: 12px;
  padding-left: 12px;
  overflow: auto;
}
.sql-plan {
  :global {
    .ant-collapse > .ant-collapse-item > .ant-collapse-header {
      padding: 0;
    }
    .ant-collapse-ghost > .ant-collapse-item > .ant-collapse-content > .ant-collapse-content-box {
      padding: 0;
      padding-top: 0;
    }
  }
}

.spin:global(.ant-spin-nested-loading) {
  :global {
    .ant-spin-container {
      padding-bottom: 0;
    }
  }
}

.subTable {
  padding-left: 40px;
  :global {
    .ant-table-footer {
      padding: 0;
      text-align: center;
    }
  }
}

.next-time:global(.ant-collapse) {
  :global {
    .ant-collapse-item > .ant-collapse-header,
    .ant-collapse-content > .ant-collapse-content-box {
      padding: 0;
    }
    .ant-collapse-content > .ant-collapse-content-box {
      padding-right: 20px;
      text-align: right;
    }
    .ant-collapse-item > .ant-collapse-content > .ant-collapse-content-box {
      padding-top: 0;
      padding-bottom: 0;
    }
    .ant-collapse-item-active {
      .ant-collapse-header {
        padding-bottom: 0;
      }
    }
  }
}

.taskSider {
  width: 148px;
  height: 100%;
  padding: 0 12px 12px 0;
  overflow: auto;
  overflow-x: hidden;
  border-right: 1px solid var(--divider-color);
}

.group {
  padding-top: 6px;
  .groupName {
    padding-top: 6px;
    color: var(--text-color-placeholder);
    line-height: 28px;
  }
  .groupItem {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    color: var(--text-color-primary);
    line-height: 28px;
    cursor: pointer;
    &:hover {
      background-color: var(--hover-color);
    }
    &.selected {
      color: var(--text-color-link);
      background-color: var(--brand-blue1-color);
      border-radius: 2px;
    }
  }
}
